//
//  HotCourseCellVM.m
//  iOS实战
//
//  Created by clz on 2019/10/27.
//  Copyright © 2019 clz. All rights reserved.
//

#import "HotCourseCellVM.h"

@implementation HotCourseCellVM

- (void)setModel:(HotCourseModel *)model{
    self.picUrl = model.picUrl;
    self.courseText = model.courseText;
    self.viewCount = model.viewCount;
    self.courseHours = model.courseHours;
    
    self.courseInfo = [NSString stringWithFormat:@"%.1fmin 时长 · %@ 浏览",self.courseHours.floatValue,self.viewCount];
}

@end
